<!DOCTYPE html>
<html lang="en" ng-app="app1">

<head>
    <meta charset="UTF-8">
    <title>表达式</title>
    <script type="text/javascript" src="../js/angular.js"></script>
    <script type="text/javascript" src="expression.js"></script>
</head>

<body>
    <div ng-controller="MyController">
        <input ng-model="expr" type="text" placeholder="只有输入数字才能看到结果" />
        <div>{{ parsedExpr }}</div>
        <br/>
        <input ng-model="expr2" type="text" placeholder="输入内容" />
        <div>{{ parsedExpr2 }}</div>
    </div>
    <div ng-controller="MyController2">
        <input ng-model="to2" type="email" placeholder="邮箱地址" />
        <textarea ng-model="emailBody2"></textarea>
        <pre>{{previewText}}</pre>
    </div>
    <!-- id="emailEditor" --> 
    <div ng-controller="MyController3">
        <input ng-model="to" type="email" placeholder="Recipient" />
        <textarea ng-model="emailBody"></textarea>
        <!-- id="emailPreview" -->
        <div>
            <pre>__ previewText __</pre>
        </div>
    </div>
</body>

</html>
